﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Set
{
    //二分搜索树
    public class BSTSet<E> : Set<E> where E : IComparable<E>
    {

        private BST<E> bst;

        public BSTSet()
        {
            bst = new BST<E>();
        }


        public int getSize()
        {
            return bst.Size();
        }


        public bool isEmpty()
        {
            return bst.isEmpty();
        }


        public void add(E e)
        {
            bst.add(e);
        }


        public bool contains(E e)
        {
            return bst.contains(e);
        }


        public void remove(E e)
        {
            bst.remove(e);
        }

    }
}
